/*
 * Copyright (c) 2022  by Junzhao
 * THIS FILE IS PART OF JAVASE Song Huongkang PROJECT
 * All Rights Reserved.
 */

package 学习.中.继承性;

import 学习.中.继承性.Person;

class Student extends Person {
    String major;

    public Student(String name) {
        setName(name);
    }

    public void eat() {
        System.out.println("吃饭");
    }

    public void show(){
        System.out.println(getName() + age);
    }
}
